//
//  UIFont+YH.m
//  ScriptKill
//
//  Created by lin on 2020/6/22.
//  Copyright © 2020 ScriptKill. All rights reserved.
//

#import "UIFont+YH.h"

@implementation UIFont (YH)


+ (UIFont *)yh_boldSystemFontOfSize:(CGFloat)fontSize{
//    fontSize = Adapted(fontSize);
    return [UIFont boldSystemFontOfSize:fontSize];
}

+ (UIFont *)yh_systemFontOfSize:(CGFloat)fontSize{
//    fontSize = Adapted(fontSize);
    return [UIFont systemFontOfSize:fontSize];
}
+ (UIFont *)yh_systemMediumSize:(CGFloat)fontSize{
    return [UIFont systemFontOfSize:fontSize weight:UIFontWeightMedium];
}
+ (UIFont *)yh_systemSemiboldSize:(CGFloat)fontSize{
    return [UIFont systemFontOfSize:fontSize weight:UIFontWeightSemibold];
}

+ (UIFont *)yh_fontWithName:(NSString *)fontName size:(CGFloat)fontSize{
//    fontSize = Adapted(fontSize);
    return [UIFont fontWithName:fontName size:fontSize];
}
+ (UIFont *)yh_hnOfSize:(CGFloat)fontSize{
    return [self yh_fontWithName:@"Helvetica Neue"  size:fontSize];
}
+ (UIFont *)yh_hnbOfSize:(CGFloat)fontSize{
    return [self yh_fontWithName: @"HelveticaNeue-Bold" size:fontSize];
}

/** PingFangSC-Regular */
+ (UIFont *)yh_pfOfSize:(CGFloat)fontSize{
    return [self yh_fontWithName: @"PingFangSC-Regular"  size:fontSize];
}
/** PingFangSC-Medium */
+ (UIFont *)yh_pfmOfSize:(CGFloat)fontSize{
    return [self yh_fontWithName:@"PingFangSC-Medium" size:fontSize];
}
/** PingFangSC-Semibold */
+ (UIFont *)yh_pfsOfSize:(CGFloat)fontSize{
    return [self yh_fontWithName: @"PingFangSC-Semibold" size:fontSize];
}
/** PingFangSC-Light */
+ (UIFont *)yh_pflOfSize:(CGFloat)fontSize{
    return [self yh_fontWithName:@"PingFangSC-Light" size:fontSize];
}

@end
